﻿using System;

namespace AutoUpdateClient
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());

            Client updateClient = new Client();
            updateClient.Report = delegate(string msg) { Console.WriteLine(msg); };

            string exeroot = Environment.CurrentDirectory;
            string engineName = "AutoUpdateEngine.exe";
            string enginePath=exeroot+"\\"+engineName;

            updateClient.UpdateEngine(enginePath);
            updateClient.StartEngine(enginePath, exeroot);
        }
    }
}